<template>
	<view class="dingdanxiangqing">
		<u-navbar :is-back="true" :title="title" :border-bottom="false"  :title-bold="true"></u-navbar>
		<view class="" v-if="data != ''">
			<!-- 待付款 -->
			<view class="daizhifu" v-if="data.orderStatus == 0">
				<view class="daizhifu-top">
					<view class="daizhifu-top-left">您有待付款订单</view>
					<view class="daizhifu-top-right">
						<u-count-down 
						:timestamp="timestamp" 
						:show-border="false" 
						:show-hours="false"
						separator="zh" 
						font-size="32" 
						separator-size="24" 
						separator-color='#000000' 
						color="#333333" 
						bg-color="#FBFBFB" 
						border-color="#909399"
						@end="handleEnd"
						></u-count-down>
					</view>
				</view>
				<view class="daizhifu-bottom">
					<text>请在剩余时间内付款，超时订单将自动关闭</text>
					<text>剩余付款时间</text>
				</view>
			</view>
			
			<!-- 已支付待发货 -->
			<view class="daifahuo" v-if="data.orderStatus == 1">
				<image src="../../static/mine_ship@2x.png" mode=""></image>
				<text>您的订单等待发货</text>
			</view>
			
			<!-- 已取消 -->
			<view class="daifahuo" v-if="data.orderStatus == 6">
				<image src="../../static/mine_ship@2x.png" mode=""></image>
				<text>您的订单已取消</text>
			</view>
			
			<view class="list">
				<view class="zitixinxi"  v-if="data.freightType == 1">
					<image src="../../static/order_address@2x.png" mode=""></image>
				    <text class="zitixinxi-text">{{data.consignee}}</text>
					<text class="zitixinxi-text1">{{data.mobile}}</text>
				</view>
				<view class="zitididian" v-if="data.freightType == 1">
					<image src="../../static/ztd@2x.png" mode=""></image>
					<view class="zitidian-box">
						<view class="zitidian-box-title">{{zitiData.name}}</view>
						<view class="zitidian-box-content">自提时间：{{zitiData.businessStartTime}}-{{zitiData.businessEndTime}}</view>
						<view class="zitidian-box-content">{{zitiData.address}}</view>
					</view>
				</view>
				
				<view class="addr" v-if="data.freightType == 0 && data.consignee">
					<view class="addr-left">
						<view class="addr-left-name">
							<text>{{data?data.consignee : ''}}</text>
							<text>{{data?data.mobile : ''}}</text>
						</view>
						<view class="addr-left-address">
							<view class="moren">
								默认
							</view>
							<view class="address-content">
								{{data?data.address : ''}}
							</view>
						</view>
					</view>
					<image class="addr-image" src="../../static/xiayibu@2x.png" mode=""></image>
				</view>
				
				<view class="item" v-for="(item,index) in data.goodsList" :key="index" @click="handleshangpinxiangqing(item.goodsId)">
					<image :src="item.picUrl" mode="aspectFill"></image>
					<view class="item-box">
						<view class="item-box-view">{{item.goodsName}}</view>
						<view class="item-box-view tag-title" v-if="data.orderType == 1">
							<text>拼团</text>
						</view>
						<view class="item-box-view1">{{item.specifications[0]}}</view>
						<view class="item-box-view2">
							<text class="item-box-view2-text" v-if="data.orderType == 0">￥{{item.price}}</text>
							<view class="item-box-view2-text" v-if="data.orderType == 1">
								拼团价 ￥{{data.groupProduct.groupBuyPrice}} 
								<text class="price through" style="margin-left: 10rpx;">￥{{item.price}}</text>
							</view>
							<text class="item-box-view2-text1">x{{item.number}}</text>
						</view>
					</view>
				</view>
				
				<view class="box">
					<view class="box-price" v-if="data.orderType == 0">
						<view class="box-price-left">小计</view>
						<view class="box-price-right">￥{{data? data.goodsPrice : 0}}</view>
					</view>
					<view class="box-price" v-if="data.orderType == 1">
						<view class="box-price-left">拼团价</view>
						<view class="box-price-right">￥{{data ? data.groupProduct.groupBuyPrice : 0}}</view>
					</view>
					<view class="box-price" v-if="data.orderType == 1" style="margin-top: 20rpx;">
						<view class="box-price-left">原价</view>
						<view class="box-price-right through">￥{{data? data.goodsPrice : 0}}</view>
					</view>
					<view class="box-yunfei">
						<view class="box-price-left">运费</view>
						<view class="box-price-right">￥{{data?data.freightPrice : 0}}</view>
					</view>
					<view class="box-coupon">
						<view class="box-coupon-left">优惠券</view>
						<view class="box-coupon-right">
							<text>-￥{{data?data.couponPrice : 0}}</text>
							<image src="../../static/xiayibu@2x.png" mode=""></image>
						</view>
					</view>
				</view>
				<view class="zongji">
					<text>总计</text>
					<text>￥{{data? data.orderPrice : 0}}</text>
				</view>
			</view>
			
			<view class="beizhu">
				<view class="beizhu-title">
					商品备注
				</view>
			    <view class="beizhu-content">
			    	{{data&&data.message?data.message : '暂无备注'}}
			    </view>
			</view>
			<view class="box-xiangqing">
				<view class="box-xiangqing-item">
					<view class="box-xiangqing-item-left">
						订单编号
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.orderSn : 0}}
						</view>
						<view class="box-xiangqing-item-right-view1" @click="copyNumHandle">
							复制
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item">
					<view class="box-xiangqing-item-left">
						创建时间
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.addTime :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item">
					<view class="box-xiangqing-item-left">
						付款
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view" v-if="data.orderStatus == 0 || data.orderStatus == 6">
							待支付
						</view>
						<view class="box-xiangqing-item-right-view" v-if="data.orderStatus != 0 && data.orderStatus != 6">
							{{data.payName}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.applyAfterSaleTime">
					<view class="box-xiangqing-item-left">
						申请售后时间
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.applyAfterSaleTime :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.afterSaleDisposeTime">
					<view class="box-xiangqing-item-left">
						商家售后处理时间
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.afterSaleDisposeTime :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.afterSaleRefusedReason">
					<view class="box-xiangqing-item-left">
						拒绝原因
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.afterSaleRefusedReason :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.refundTime">
					<view class="box-xiangqing-item-left">
						退款时间
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.refundTime :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.freightType== 1 && data.confirmTime">
					<view class="box-xiangqing-item-left">
						自提时间
					</view>
					<view class="box-xiangqing-item-right">
						<view class="box-xiangqing-item-right-view">
							{{data?data.confirmTime :''}}
						</view>
					</view>
				</view>
				<view class="box-xiangqing-item" v-if="data.freightType== 1 && data.takeImg">
					<view class="box-xiangqing-item-left">
						自提照片
					</view>
					<view class="box-xiangqing-item-right-zhaopian">
						<image v-for="(item,index) in JSON.parse(data.takeImg)" :key="index" :src="item" mode="aspectFill" @click="viewzitiImage(index)"></image>
					</view>
				</view>
			</view>
			<view class="kong">
				
			</view>
			<view class="box-bottom">
				<view class="box-bottom-right1" @click="$u.throttle(handlequxiaodingdan, 1000)" v-if="data.orderStatus == 0">取消订单</view>
				<view class="box-bottom-right" @click="$u.throttle(handlelijifukuan, 1000)" v-if="data.orderStatus == 0">立即付款</view>
				
				<view class="box-bottom-right1" @click="handlewuliu" v-if="data && data.orderOperator && data.orderOperator.showLogistics">查看物流</view>
				
				<view class="box-bottom-right1" @click="handleshanchu" v-if="data.orderStatus == 6">删除订单</view>
				
				<view class="box-bottom-right1" @click="handleshouhuo" v-if="data.orderStatus == 2">确认收货</view>
				<view class="box-bottom-right1" @click="$u.throttle(handletuikuan, 1000)" v-if="data.orderOperator.refund">退款</view>
				<view class="box-bottom-right1" @click="$u.throttle(handleshouhou, 1000)" v-if="data.orderOperator.applyAfterSale">申请售后</view>
				<view class="box-bottom-right1" @click="$u.throttle(handlequxiaoshouhou, 1000)" v-if="data.orderOperator.cancelAfterSale">取消售后</view>
				<view class="box-bottom-right1" @click="$u.throttle(handleshouhouxiangqing, 1000)" v-if="data.orderStatus == 8 || data.orderStatus == 12 || data.orderStatus == 10">售后详情</view>
				<view class="box-bottom-right1" @click="$u.throttle(handleshouhouxiangqing, 1000)" v-if="data.orderOperator.uploadReturnLogistics">售后详情</view>
			</view>
		</view>
		
		<u-mask :show="show" @click="show = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="tishi">
						提示
					</view>
					<view class="content">
						请上传取货照片
					</view>
					<!-- 上传图片 -->
					<view class="releaseGoodsItemUpload">
					  <view v-for="(item,index) in photoList" :key="index" class="photoListItem">
						<image class="photoListItemImg" :src="item" @click="ViewImage(photoList[index])"></image>
						<view class="delImage" @click="DelImg(index)">
						    <image src="http://juebai.oss-cn-hangzhou.aliyuncs.com/webStorage/web_16147431265761867.png"></image>
						</view>
					  </view>
					  <image class="upload" @click="handleUpload" v-if="photoList.length < 3" src="../../static/sc_tp@2x.png" mode=""></image>
					</view>
					
					<view class="xian-box">
						<view class="xian">
							
						</view>
					</view>
					<view class="rect-btn">
						<view class="quxiao"  @click="show = false">
							取消
						</view>
						<view class="queding"  @click="sumbit">
							确定
						</view>
					</view>
				</view>
			</view>
		</u-mask>
		<u-mask :show="show1" @click="show1 = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="tishi">
						提示
					</view>
					<view class="content">
						您确认要进行退款吗？
					</view>
					<view class="xian-box">
						<view class="xian">
							
						</view>
					</view>
					<view class="rect-btn">
						<view class="quxiao"  @click="show1 = false">
							取消
						</view>
						<view class="queding"  @click="sumbittuikuan">
							确定
						</view>
					</view>
				</view>
			</view>
		</u-mask>
		
		<u-mask :show="show2" @click="show2 = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="tishi">
						提示
					</view>
					<view class="content">
						您确认要取消售后吗？
					</view>
					<view class="xian-box">
						<view class="xian">
							
						</view>
					</view>
					<view class="rect-btn">
						<view class="quxiao"  @click="show2 = false">
							取消
						</view>
						<view class="queding"  @click="sumbitquxiaoshouhou">
							确定
						</view>
					</view>
				</view>
			</view>
		</u-mask>
		
		<u-mask :show="show3" @click="show3 = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="tishi">
						提示
					</view>
					<view class="content">
						您确认要申请售后吗？
					</view>
					<view class="xian-box">
						<view class="xian">
							
						</view>
					</view>
					<view class="rect-btn">
						<view class="quxiao"  @click="show3 = false">
							取消
						</view>
						<view class="queding"  @click="sumbitshenqingshouhou">
							确定
						</view>
					</view>
				</view>
			</view>
		</u-mask>
		
		<u-mask :show="show4" @click="show4 = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="tishi">
						提示
					</view>
					<view class="content">
						您确认收货吗？
					</view>
					<view class="xian-box">
						<view class="xian">
							
						</view>
					</view>
					<view class="rect-btn">
						<view class="quxiao"  @click="show4 = false">
							取消
						</view>
						<view class="queding"  @click="sumbitquerenshouhuo">
							确定
						</view>
					</view>
				</view>
			</view>
		</u-mask>
	</view>
</template>

<script>
	var uploadImage = require('../../common/uploadFile.js');//地址换成你自己存放文件的位置
	var util = require('../../common/formatTime.js');
	export default {
		data() {
			return {
				title:'待支付',
				timestamp:'900',
				// 0待付款 1待发货(已支付) 2已发货 3已完成 4已取消
				data:'',
				orderId:'',
				zitiData:'',
				show:false,
				photoList:[],
				timer:null,
				show1:false,
				show2:false,
				show3:false,
				show4:false,
				share:uni.getStorageSync('share')
			}
		},
		onLoad(options) {
			// TYPE0(0, "待支付"),
			// TYPE1(1, "待发货"),
			// TYPE2(2, "待收货"),
			// TYPE3(3, "待评价"),
			// TYPE4(4, "已完成"),
			// TYPE5(5, "已退款"),
			// TYPE6(6, "已取消"),
			// TYPE7(7,"售后审核中"),
			// TYPE8(8,"售后完成");
			this.orderId = options.orderId
			this.getzitixinxi()
		},
		onShow() {
			this.getorderDetails()
		},
		methods: {
			//自提信息
			async getzitixinxi(){
				const res = await this.$u.api.getSinceSiteInfo()
				this.zitiData = res.data
			},
			//订单详情
			async getorderDetails(){
				const params = {
					orderId:this.orderId
				}
				const res = await this.$u.api.orderDetails(params)
				this.data = res.data
				this.title = res.data.orderStatusName
				if (this.data.orderStatus == 0) {
					this.timestamp = (new Date(res.data.endTime) - new Date())/1000
				}
				clearInterval(this.timer)
				this.timer = null
				uni.hideLoading()
			},
			//倒计时结束
			handleEnd(){
				this.getorderDetails()
			},
			//复制
			copyNumHandle(){
				uni.setClipboardData({
					data: this.data.orderSn, // data的值为你要复制的内容
					success: (res) => {
						this.$u.toast('复制成功')
					}
				});
			},
			//取消订单
			async handlequxiaodingdan(){
				const params = {
					orderId:this.orderId
				}
				const res = await this.$u.api.orderCancel(params)
				this.$u.toast(res.msg)
				this.getorderDetails()
			},
			//立即付款
			async handlelijifukuan(){
				const params = {
					orderId:this.orderId
				}
				const res1 = await this.$u.api.orderPay(params)
				uni.requestPayment({
					provider: 'wxpay',    //支付类型-固定值
					timeStamp: res1.data.wxPayInfo.timeStamp, // 时间戳（单位：秒）
					nonceStr: res1.data.wxPayInfo.nonceStr, // 随机字符串
					package: res1.data.wxPayInfo.packageValue, // 固定值
					signType: res1.data.wxPayInfo.signType, //固定值
					paySign: res1.data.wxPayInfo.paySign, //签名
					appId:res1.data.wxPayInfo.appId,
					success: (res)=> {
						console.log('我支付成功了')
						uni.showToast({
							icon: 'success',
							title: '支付成功'
						})
						uni.requestSubscribeMessage({
							tmplIds: ['hFFHbw5eYfjco3Zzlq0ube3IELTOl5MM6txLqQJ3ll8'],
							complete: (res) => {
								console.log(res,'999');
							
							}
						})
						this.getorderDetails()
					},
					
					fail: (err)=> {
						uni.showToast({
							icon: 'none',
							title: '支付失败'
						})
						
					}
				});	
			},
			//查看物流
			handlewuliu(){
				const params = 'orderId=' + this.orderId
				uni.navigateTo({
					url:'/pages/wuliu/wuliu?' + params
				})
			},
			//删除订单
			async handleshanchu(){
				const params = {
					orderId:this.orderId
				}
				const res = await this.$u.api.orderDel(params)
				this.$u.toast(res.msg)
				setTimeout(()=>{
					uni.navigateBack({
						delta:1
					})
				},1000)
			},
			//商品详情
			handleshangpinxiangqing(goodsId){
				const params = 'goodsId=' + goodsId
				uni.navigateTo({
					url:'/pages/shangpinxiangqing/shangpinxiangqing?' + params
				})
			},
			//确认收货
			async handleshouhuo(){
				if (this.data.freightType==0) {
					const params  = {
						orderId:this.orderId
					}	
					const res = await this.$u.api.confirm(params)
					this.$u.toast(res.msg)
					this.getorderDetails()
					
				}else{
					this.show = true
				}
			},
			// handleshouhuo(){
			// 	this.show4 = true
			// },
			//弹框确认收货
			async sumbitquerenshouhuo(){
				if (this.data.freightType==0) {
					const params  = {
						orderId:this.orderId
					}	
					const res = await this.$u.api.confirm(params)
					this.show4 = false
					this.$u.toast(res.msg)
					this.getorderDetails()
				} else{
					const params  = {
						orderId:this.orderId,
						takeImg:JSON.stringify(this.photoList)
					}	
					const res = await this.$u.api.confirm(params)
					this.show4 = false
					this.$u.toast(res.msg)
					this.getorderDetails()
				}
				
			},
			//打开退款弹框
			handletuikuan(){
				this.show1 = true
			},
			//退款 sumbittuikuan
			async sumbittuikuan(){
				const params  = {
					orderId:this.orderId
				}	
				const res = await this.$u.api.orderRefund(params)
				uni.showLoading({
					title: '退款中',
					duration:6000
				});
				this.show1 = false
				this.timer = setInterval(()=>{
					this.getNewDetail()
				},1000)
				
			},
			async getNewDetail(){
				const params  = {
					orderId:this.orderId
				}	
				const res = await this.$u.api.orderDetails(params)
				if (res.data.orderStatus == 5) {
					this.title = res.data.orderStatusName
					this.$u.toast('退款成功')
					this.data = res.data
					clearInterval(this.timer)
					this.timer = null
				}
			},
			//上传图片
			handleUpload(){
				console.log(111)
			    var that = this;
			    uni.chooseImage({
			      count: 9, // 默认最多一次选择9张图
			      sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
			      sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机，默认二者都有
			      //sourceType: ['album'],
			      success: function (res) {
			        // 返回选定照片的本地文件路径列表，tempFilePath可以作为img标签的src属性显示图片
			        var tempFilePaths = res.tempFilePaths;
					console.log(res.tempFilePaths)
			        var nowTime = util.formatTime(new Date());
			        //支持多图上传
			        console.log(res.tempFilePaths,12)
			        for (var i = 0; i < res.tempFilePaths.length; i++) {
			          //显示消息提示框
			          uni.showLoading({
			            title: '上传中' + (i + 1) + '/' + res.tempFilePaths.length,
			            mask: true
			          })
			          //上传图片
			          //你的域名下的/cbb文件下的/当前年月日文件下的/图片.png
			          //图片路径可自行修改
			          // uploadImage(res.tempFilePaths[i], 'bad/' + nowTime + '/',
			          uploadImage(res.tempFilePaths[i], 'hmh/',
			            function (result) {
			              console.log("======上传成功图片地址为：", result);
			              //做你具体的业务逻辑操作
						  that.photoList = that.photoList.concat(result.split(','))
						  console.log(that.photoList)
			              uni.hideLoading();
			           }, function (result) {
			            console.log("======上传失败======", result);
			            //做你具体的业务逻辑操作
			                   uni.hideLoading()
			                }
			             )
			          }
			       }
			    })
			},
			ViewImage(url) {
			    uni.previewImage({
			      urls: this.photoList,
			      current: url
			    });
			},
			DelImg(index) {
			    this.photoList.splice(index, 1);
			    
			},
			//自提订单确认收货
			async sumbit(){
				if (this.photoList.length == 0) {
					this.$u.toast('请上传取货照片')
					return
				}
				const params  = {
					orderId:this.orderId,
					takeImg:JSON.stringify(this.photoList)
				}	
				const res = await this.$u.api.confirm(params)
				this.show = false
				this.$u.toast(res.msg)
				this.getorderDetails()
			},
			//订单详情自提照片的展示
			viewzitiImage(index){
				uni.previewImage({
				  urls:JSON.parse(this.data.takeImg),
				  current: JSON.parse(this.data.takeImg)[index]
				});
			},
			//打开申请售后
			handleshouhou(){
				this.show3 = true
			},
			//申请售后 sumbitshenqingshouhou
			sumbitshenqingshouhou(){
				this.show3 = false
				const params = 'orderId=' + this.orderId
				uni.navigateTo({
					url:'/pages/shouhou/shouhou?' + params
				})
			},
			//打开取消售后弹框
			handlequxiaoshouhou(){
				this.show2 = true
			},
			//取消售后 sumbitquxiaoshouhou
			async sumbitquxiaoshouhou(){
				const params = {
					orderId:this.orderId
				}
				const res = await this.$u.api.cancelAfterSale(params)
				this.show2 = false
				this.$u.toast(res.msg)
				this.getorderDetails()
			},
			//售后详情
			handleshouhouxiangqing(){
				const params = 'orderId=' + this.orderId
				uni.navigateTo({
					url:'/pages/shenqingshouhou/shenqingshouhou?' + params
				})
			}
		},
		onUnload() {
			if(this.timer) {  
				clearTimeout(this.timer);  
				this.timer = null;  
			}  
		}
	}
</script>
<style>
	page{
		background: #FBFBFB;
	}
</style>
<style scoped lang="scss">
    .dingdanxiangqing{
		
	}
	.daizhifu{
		padding: 28rpx 28rpx 0rpx 28rpx;
	}
	.daizhifu-top{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.daizhifu-top-left{
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 38rpx;
	}
	.daizhifu-top-right{
		
	}
	.daizhifu-top-right-text{
		font-size: 24rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 38rpx;
	}
	.daizhifu-top-right-text1{
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 38rpx;
	}
	.daizhifu-bottom{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 24rpx;
		font-size: 22rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #5D22BA;
		line-height: 26rpx;
	}
	.daifahuo{
		padding: 28rpx 28rpx 0rpx 28rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.daifahuo image{
		width: 56rpx;
		height: 56rpx;
	}
	.daifahuo text{
		margin-left: 14rpx;
		font-size: 32rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #A93156;
		line-height: 38rpx;
	}
	.list{
		margin-top: 28rpx;
		padding: 0rpx 28rpx 28rpx 28rpx;
		background: white;
	}
	.item{
		padding-bottom: 28rpx;
		display: flex;
		flex-direction: row;
	}
	.item image{
		width: 204rpx;
		height: 204rpx;
	}
	.item-box{
		flex: 1;
		margin-left: 16rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.item-box-view{
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 32rpx;
	}
	.item-box-view1{
		font-size: 24rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 28rpx;
	}
	.item-box-view2{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.item-box-view2-text{
		font-size: 32rpx;
		font-family: Arvo-Regular, Arvo;
		font-weight: 400;
		color: #5D22BA;
		line-height: 38rpx;
	}
	.item-box-view2-text1{
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 38rpx;
	}
	.box{
		padding: 28rpx 0rpx;
	    border-top: 0.5px solid #E3E3E3;
		border-bottom: 0.5px solid #E3E3E3;
	}
	.box-price{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.box-price-left{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
		line-height: 32rpx;
	}
	.box-price-right{
		font-size: 32rpx;
		font-family: Arvo-Regular, Arvo;
		font-weight: 400;
		color: #333333;
		line-height: 34rpx;
	}
	.box-yunfei{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-top: 28rpx;
	}
	.box-coupon{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 28rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
		line-height: 34rpx;
	}
	.box-coupon-right{
		display: flex;
		flex-direction: row;
		align-items: center;
		font-size: 34rpx;
	}
	.box-coupon-right image{
		margin-left: 8rpx;
		width: 36rpx;
		height: 36rpx;
	}
	.zongji{
		padding-top: 28rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		font-size: 34rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
		line-height: 34rpx;
	}
	.beizhu{
		margin-top: 28rpx;
		padding: 28rpx;
		background: white;
	}
	.kong{
		width: 100%;
		height: 200rpx;
	}
	.beizhu-title{
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #000000;
		line-height: 32rpx;
		padding-bottom: 28rpx;
	}
	.beizhu-content{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #999999;
		line-height: 32px;
	}
	.box-bottom{
	    border-top: 0.5px solid #F3F3F3;
		width: 750rpx;
		height: 168rpx;
		background: #FFFFFF;
		padding: 10rpx 28rpx 0rpx 28rpx;
		position: fixed;
		left: 0;
		bottom: 0;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		z-index: 1000;
	}
	.box-bottom view{
		margin-left: 28rpx;
	}
	.box-bottom-right1{
		width: 256rpx;
		height: 92rpx;
        border: 1px solid #5D22BA;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #5D22BA;
		line-height: 92rpx;
		text-align: center;
	}
	.box-bottom-right{
		width: 256rpx;
		height: 92rpx;
		background: url('http://hmh-app.oss-cn-beijing.aliyuncs.com/webStorage/web_16919793742137642.png') no-repeat;
		background-size: 100% 100%;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 92rpx;
		text-align: center;
	}
	.addr{
		padding: 48rpx 0rpx;
		background: white;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
        border-bottom: 0.5px solid #E3E3E3;
		margin-bottom: 28rpx;
	}
	.addr-left{
		
	}
	.addr-left-name{
		display: flex;
		flex-direction: row;
		font-size: 32rpx;
		font-family: SF Pro Text-Bold, SF Pro Text;
		font-weight: bold;
		color: #333333;
		line-height: 38rpx;
	}
	.addr-left-name text{
		margin-left: 8rpx;
	}
	.addr-left-address{
		margin-top: 22rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.moren{
		width: 60rpx;
		height: 32rpx;
		background: url('http://hmh-app.oss-cn-beijing.aliyuncs.com/webStorage/web_16919793742137642.png') no-repeat;
		background-size: 100% 100%;
		border-radius: 2px 2px 2px 2px;
		font-size: 22rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		line-height: 32rpx;
		text-align: center;
		margin-right: 16rpx;
	}
	.address-content{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 32rpx;
	}
	.addr-image{
		width: 48rpx;
		height: 48rpx;
	}
	
	.box-xiangqing{
		margin-top: 28rpx;
		padding: 0rpx 28rpx 28rpx 28rpx;
		background: white;
	}
	.box-xiangqing-item{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-top: 28rpx;
	}
	.box-xiangqing-item-left{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 32rpx;
	}
	.box-xiangqing-item-right{
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.box-xiangqing-item-right-zhaopian{
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
	}
	.box-xiangqing-item-right-zhaopian image{
		width: 88rpx;
		height: 88rpx;
		margin-left: 8rpx;
		border-radius: 8px;
	}
	.box-xiangqing-item-right-view{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 32rpx;
	}
	.box-xiangqing-item-right-view1{
		margin-left: 12rpx;
		width: 64rpx;
		height: 34rpx;
		background: url('http://hmh-app.oss-cn-beijing.aliyuncs.com/webStorage/web_16919793742137642.png') no-repeat;
		background-size: 100% 100%;
		font-size: 22rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #ffffff;
		line-height: 34rpx;
		text-align: center;
	}
	
	
	.zitixinxi{
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 40rpx;
		background: white;
	}
	.zitixinxi image{
		width: 40rpx;
		height: 40rpx;
	}
	.zitixinxi text{
		margin-left: 32rpx;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
		line-height: 38rpx;
	}
	.zitididian{
		background: white;
		margin-bottom: 40rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.zitididian image{
		width: 40rpx;
		height: 40rpx;
	}
	.zitidian-box{
		display: flex;
		flex-direction: column;
		margin-left: 32rpx;
	}
	.zitidian-box-title{
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 38rpx;
	}
	.zitidian-box-content{
		margin-top: 12rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 32rpx;
	}
	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}
	
	.rect {
		width: 80%;
		// background: #081945;
		// box-shadow: inset 0px 0px 25px 0px #045174;
		background: white;
		border-radius: 10px 10px 10px 10px;
		border-radius: 10px;
	}
	.tishi{
		padding: 30rpx 0rpx 20rpx 0rpx;
		text-align: center;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #000000;
		line-height: 42rpx;
	}
	.content{
		padding: 30rpx 0rpx 40rpx 0rpx;
		text-align: center;
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #000000;
		line-height: 42rpx;
		border-bottom: 0.5px solid rgba(0,0,0,0.05);
	}
	.xian-box{
		padding: 0rpx 30rpx;
	}
	.xian{
		width: 100%;
		height: 0px;
		opacity: 0.2;
		border: 0.5rpx solid #FFFFFF;
	}
	.rect-btn{
		display: flex;
		flex-direction: row;
		padding: 40rpx 0rpx 40rpx 0rpx;
	}
	.quxiao{
		flex: 1;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #666666;
		line-height: 42rpx;
	}
	.queding{
		flex: 1;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 42rpx;
	}
	
	
	.releaseGoodsItemUpload{
	  display: flex;
	  flex-direction: row;
	  align-items: center;
	  justify-content: center;
	  flex-wrap: wrap;
	  padding: 50rpx 28rpx;
	}
	.photoListItem{
	  width: 140rpx;
	  height: 140rpx;
	  position: relative;
	  margin: 0rpx 20rpx 20rpx 0rpx;
	}
	.photoListItemImg{
	  width: 140rpx;
	  height: 140rpx;
	  border-radius: 10px;
	}
	.delImage image{
	  width: 40rpx;
	  height: 40rpx;
	  position: absolute;
	  top: 0;
	  right: 0;
	}
	.upload{
	  margin-bottom: 24rpx;
	  width: 140rpx;
	  height: 140rpx;
	}.releaseGoodsItemUpload{
	  display: flex;
	  flex-direction: row;
	  flex-wrap: wrap;
	  padding: 50rpx 28rpx;
	}
	.photoListItem{
	  width: 140rpx;
	  height: 140rpx;
	  position: relative;
	  margin: 0rpx 20rpx 20rpx 0rpx;
	}
	.photoListItemImg{
	  width: 140rpx;
	  height: 140rpx;
	  border-radius: 10px;
	}
	.delImage image{
	  width: 40rpx;
	  height: 40rpx;
	  position: absolute;
	  top: 0;
	  right: 0;
	}
	.upload{
	  margin-bottom: 24rpx;
	  width: 140rpx;
	  height: 140rpx;
	}.releaseGoodsItemUpload{
	  display: flex;
	  flex-direction: row;
	  flex-wrap: wrap;
	  padding: 50rpx 28rpx;
	}
	.photoListItem{
	  width: 140rpx;
	  height: 140rpx;
	  position: relative;
	  margin: 0rpx 20rpx 20rpx 0rpx;
	}
	.photoListItemImg{
	  width: 140rpx;
	  height: 140rpx;
	  border-radius: 10px;
	}
	.delImage image{
	  width: 40rpx;
	  height: 40rpx;
	  position: absolute;
	  top: 0;
	  right: 0;
	}
	.upload{
	  margin-bottom: 24rpx;
	  width: 140rpx;
	  height: 140rpx;
	}.releaseGoodsItemUpload{
	  display: flex;
	  flex-direction: row;
	  flex-wrap: wrap;
	  padding: 50rpx 28rpx;
	}
	.photoListItem{
	  width: 140rpx;
	  height: 140rpx;
	  position: relative;
	  margin: 0rpx 20rpx 20rpx 0rpx;
	}
	.photoListItemImg{
	  width: 140rpx;
	  height: 140rpx;
	  border-radius: 10px;
	}
	.delImage image{
	  width: 40rpx;
	  height: 40rpx;
	  position: absolute;
	  top: 0;
	  right: 0;
	}
	.upload{
	  margin-bottom: 24rpx;
	  width: 140rpx;
	  height: 140rpx;
	}
	.through { 
		text-decoration: line-through;
		color: gray; 
	}
</style>
